package com.bobi.ecofavor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bobi.ecofavor.mapper.StoreNameMapper;
import com.bobi.ecofavor.model.dto.StoreNameDto;
import com.bobi.ecofavor.service.StoreNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StoreNameServiceImpl extends ServiceImpl<StoreNameMapper, StoreNameDto> implements StoreNameService {
    @Autowired
    private StoreNameMapper storeNameMapper;

    @Override
    public List<StoreNameDto> getOilNameById(Integer userid) {
        List<StoreNameDto> stores = storeNameMapper.selectOilNameById(userid);
        return stores;
    }
}
